/*
 * Created by JFormDesigner on Wed Dec 07 22:20:50 ICT 2011
 */

package realestatemarketclient;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.List;
import javax.swing.event.*;

/**
 * @author Nhan Nhan
 */
public class PostingSaleForm extends JFrame {
    public PostingSaleForm() {
        initComponents();
    }

    private void comboBoxNationActionPerformed(ActionEvent e) {
        for (REMService.NATION n : nations) {
            if (n.getName() == comboBoxNation.getSelectedItem()) {
                cities = n.getCITies().getCITY();
                comboBoxCity.removeAllItems();
                for (REMService.CITY c : cities) {
                    comboBoxCity.addItem(c.getName());
                }
                break;
            }
        }
    }

    private void comboBoxCityActionPerformed(ActionEvent e) {
        for (REMService.CITY c : cities) {
            if (c.getName() == comboBoxCity.getSelectedItem()) {
                districts = c.getDISTRICTs().getDISTRICT();
                comboBoxDistrict.removeAllItems();
                for (REMService.DISTRICT d : districts) {
                    comboBoxDistrict.addItem(d.getName());
                }
                break;
            }
        }
    }

    private void comboBoxDistrictActionPerformed(ActionEvent e) {
        for (REMService.DISTRICT d : districts) {
            if (d.getName() == comboBoxDistrict.getSelectedItem()) {
                wards = d.getWARDs().getWARD();
                comboBoxWard.removeAllItems();
                for (REMService.WARD w : wards) {
                    comboBoxWard.addItem(w.getName());
                }
                
                streets = d.getDISTRICTDETAILs().getDISTRICTDETAIL();
                comboBoxStreet.removeAllItems();
                for (REMService.DISTRICTDETAIL s : streets) {
                    comboBoxStreet.addItem(s.getSTREET().getName());
                }
                
                break;
            }
        }
    }

    private void tabbedPanePostingSaleChanged(ChangeEvent e) {
       if (tabbedPanePostingSale.getSelectedComponent().equals(panelNewEstate) && (comboBoxTypeEstate.getItemCount() == 0)) {
            types = RealEstateService.getRequest().getAllRealEstateTypes().getREALESTATETYPE();
            for (REMService.REALESTATETYPE t : types) {
                comboBoxTypeEstate.addItem(t.getName());
            }

            locations = RealEstateService.getRequest().getAllLocations().getLOCATION();
            for (REMService.LOCATION l : locations) {
                comboBoxLocationEstate.addItem(l.getName());
            }

            nations = RealEstateService.getRequest().getAllNations().getNATION();
            for (REMService.NATION n : nations) {
                comboBoxNation.addItem(n.getName());
            }

            legals = RealEstateService.getRequest().getAllLegals().getLEGAL();
            for (REMService.LEGAL l : legals) {
                comboBoxLegalEstate.addItem(l.getName());
            }
       }
    }

    private void tabbedPaneNewEstateStateChanged(ChangeEvent e) {
        if (tabbedPaneNewEstate.getSelectedComponent().equals(panelInfo)) {
            buttonBack.setEnabled(false);
            buttonNext.setEnabled(true);
        } else if (tabbedPaneNewEstate.getSelectedComponent().equals(panelContact)) {
            buttonBack.setEnabled(true);
            buttonNext.setEnabled(false);
        } else {
            buttonBack.setEnabled(true);
            buttonNext.setEnabled(true);
        }
    }

    private void buttonBackActionPerformed(ActionEvent e) {
       int indexCurrentTab = tabbedPaneNewEstate.getSelectedIndex();
       if (indexCurrentTab > 0) {
           tabbedPaneNewEstate.setSelectedIndex(indexCurrentTab - 1);
       }
    }

    private void buttonNextActionPerformed(ActionEvent e) {
       int indexCurrentTab = tabbedPaneNewEstate.getSelectedIndex();
       if (indexCurrentTab < tabbedPaneNewEstate.getTabCount() - 1) {
           tabbedPaneNewEstate.setSelectedIndex(indexCurrentTab + 1);
       }
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        // Generated using JFormDesigner Evaluation license - Nhan Nguyen
        tabbedPanePostingSale = new JTabbedPane();
        panel1 = new JPanel();
        panelNewEstate = new JPanel();
        tabbedPaneNewEstate = new JTabbedPane();
        panelInfo = new JPanel();
        label1 = new JLabel();
        label2 = new JLabel();
        radioButtonSale = new JRadioButton();
        radioButtonBuy = new JRadioButton();
        radioButtonRent = new JRadioButton();
        radioButtonLease = new JRadioButton();
        label3 = new JLabel();
        comboBoxTypeEstate = new JComboBox();
        comboBoxLocationEstate = new JComboBox();
        label4 = new JLabel();
        label5 = new JLabel();
        comboBoxNation = new JComboBox();
        label8 = new JLabel();
        comboBoxCity = new JComboBox();
        label6 = new JLabel();
        comboBoxDistrict = new JComboBox();
        label9 = new JLabel();
        comboBoxWard = new JComboBox();
        label7 = new JLabel();
        textFieldHouse = new JTextField();
        label10 = new JLabel();
        comboBoxStreet = new JComboBox();
        label11 = new JLabel();
        comboBoxProject = new JComboBox();
        label12 = new JLabel();
        textFieldPrice = new JTextField();
        comboBoxUnit = new JComboBox();
        label13 = new JLabel();
        radioButton5 = new JRadioButton();
        radioButton6 = new JRadioButton();
        label14 = new JLabel();
        textFieldUsedArea = new JTextField();
        label15 = new JLabel();
        textFieldLengthCampusArea = new JTextField();
        textFieldWidthCampusArea = new JTextField();
        label16 = new JLabel();
        textFieldLengthBuildArea = new JTextField();
        textFieldWidthBuildArea = new JTextField();
        panelFeature = new JPanel();
        label17 = new JLabel();
        label18 = new JLabel();
        comboBoxLegalEstate = new JComboBox();
        label19 = new JLabel();
        comboBoxWayEstate = new JComboBox(ways);
        label20 = new JLabel();
        comboBoxFrontEstate = new JComboBox(fronts);
        label21 = new JLabel();
        comboBoxFloor = new JComboBox(numberOfRoom);
        label22 = new JLabel();
        comboBoxSittingroom = new JComboBox(numberOfRoom);
        label23 = new JLabel();
        comboBoxBedroom = new JComboBox(numberOfRoom);
        label24 = new JLabel();
        comboBoxBathroom = new JComboBox(numberOfRoom);
        label25 = new JLabel();
        comboBoxOtherRoom = new JComboBox(numberOfRoom);
        label26 = new JLabel();
        checkBoxFullEquip = new JCheckBox();
        checkBoxPool = new JCheckBox();
        checkBoxGarden = new JCheckBox();
        checkBoxGarage = new JCheckBox();
        checkBoxForBusiness = new JCheckBox();
        checkBoxForLive = new JCheckBox();
        checkBoxForOffice = new JCheckBox();
        checkBoxForProduce = new JCheckBox();
        checkBoxForLease = new JCheckBox();
        panelDetail = new JPanel();
        panelPicture = new JPanel();
        panelContact = new JPanel();
        label27 = new JLabel();
        label28 = new JLabel();
        textFieldContactPerson = new JTextField();
        label29 = new JLabel();
        textFieldPhone = new JTextField();
        label31 = new JLabel();
        textFieldEmail = new JTextField();
        label30 = new JLabel();
        textFieldMobile = new JTextField();
        label32 = new JLabel();
        label35 = new JLabel();
        comboBoxContactNation = new JComboBox();
        label36 = new JLabel();
        comboBoxContactCity = new JComboBox();
        label37 = new JLabel();
        comboBoxContactDistrict = new JComboBox();
        label38 = new JLabel();
        comboBoxContactWard = new JComboBox();
        label39 = new JLabel();
        textFieldContact = new JTextField();
        label40 = new JLabel();
        comboBoxContactStreet = new JComboBox();
        label33 = new JLabel();
        scrollPane1 = new JScrollPane();
        textAreaNote = new JTextArea();
        buttonBack = new JButton();
        buttonPostingSale = new JButton();
        buttonNext = new JButton();

        //======== this ========
        setTitle("\u0110\u0103ng Tin Rao B\u00e1n");
        setResizable(false);
        setFont(new Font("Dialog", Font.PLAIN, 12));
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //======== tabbedPanePostingSale ========
        {
            tabbedPanePostingSale.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    tabbedPanePostingSaleChanged(e);
                }
            });

            //======== panel1 ========
            {

                // JFormDesigner evaluation mark
                panel1.setBorder(new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                        javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
                        java.awt.Color.red), panel1.getBorder())); panel1.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

                panel1.setLayout(null);
            }
            tabbedPanePostingSale.addTab("text", panel1);


            //======== panelNewEstate ========
            {
                panelNewEstate.setLayout(null);

                //======== tabbedPaneNewEstate ========
                {
                    tabbedPaneNewEstate.setTabPlacement(SwingConstants.BOTTOM);
                    tabbedPaneNewEstate.addChangeListener(new ChangeListener() {
                        public void stateChanged(ChangeEvent e) {
                            tabbedPaneNewEstateStateChanged(e);
                        }
                    });

                    //======== panelInfo ========
                    {
                        panelInfo.setLayout(new GridBagLayout());
                        ((GridBagLayout)panelInfo.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelInfo.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelInfo.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                        ((GridBagLayout)panelInfo.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

                        //---- label1 ----
                        label1.setText("TH\u00d4NG TIN C\u01a0 B\u1ea2N");
                        label1.setFont(new Font("Tahoma", Font.BOLD, 14));
                        panelInfo.add(label1, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label2 ----
                        label2.setText("Lo\u1ea1i Tin Rao");
                        panelInfo.add(label2, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButtonSale ----
                        radioButtonSale.setText("C\u1ea7n b\u00e1n");
                        radioButtonSale.setSelected(true);
                        panelInfo.add(radioButtonSale, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButtonBuy ----
                        radioButtonBuy.setText("C\u1ea7n mua");
                        panelInfo.add(radioButtonBuy, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButtonRent ----
                        radioButtonRent.setText("C\u1ea7n thu\u00ea");
                        panelInfo.add(radioButtonRent, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButtonLease ----
                        radioButtonLease.setText("Cho thu\u00ea");
                        panelInfo.add(radioButtonLease, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label3 ----
                        label3.setText("Lo\u1ea1i \u0110\u1ecba \u1ed0c");
                        panelInfo.add(label3, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxTypeEstate, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxLocationEstate, new GridBagConstraints(4, 4, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label4 ----
                        label4.setText("V\u1ecb Tr\u00ed");
                        panelInfo.add(label4, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label5 ----
                        label5.setText("Qu\u1ed1c Gia");
                        panelInfo.add(label5, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- comboBoxNation ----
                        comboBoxNation.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                comboBoxNationActionPerformed(e);
                            }
                        });
                        panelInfo.add(comboBoxNation, new GridBagConstraints(2, 6, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label8 ----
                        label8.setText("T\u1ec9nh / Th\u00e0nh Ph\u1ed1");
                        panelInfo.add(label8, new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- comboBoxCity ----
                        comboBoxCity.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                comboBoxCityActionPerformed(e);
                            }
                        });
                        panelInfo.add(comboBoxCity, new GridBagConstraints(4, 6, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label6 ----
                        label6.setText("Qu\u1eadn / Huy\u1ec7n");
                        panelInfo.add(label6, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- comboBoxDistrict ----
                        comboBoxDistrict.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                comboBoxDistrictActionPerformed(e);
                            }
                        });
                        panelInfo.add(comboBoxDistrict, new GridBagConstraints(2, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label9 ----
                        label9.setText("Ph\u01b0\u1eddng / X\u00e3");
                        panelInfo.add(label9, new GridBagConstraints(3, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxWard, new GridBagConstraints(4, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label7 ----
                        label7.setText("S\u1ed1 Nh\u00e0 / S\u1ed1 L\u00f4");
                        panelInfo.add(label7, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(textFieldHouse, new GridBagConstraints(2, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label10 ----
                        label10.setText("T\u00ean \u0110\u01b0\u1eddng / T\u00ean Ph\u1ed1");
                        panelInfo.add(label10, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxStreet, new GridBagConstraints(4, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label11 ----
                        label11.setText("T\u00ean D\u1ef1 \u00c1n");
                        panelInfo.add(label11, new GridBagConstraints(0, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxProject, new GridBagConstraints(2, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label12 ----
                        label12.setText("Gi\u00e1");
                        panelInfo.add(label12, new GridBagConstraints(0, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(textFieldPrice, new GridBagConstraints(2, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelInfo.add(comboBoxUnit, new GridBagConstraints(3, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label13 ----
                        label13.setText("M\u00f4i Gi\u1edbi");
                        panelInfo.add(label13, new GridBagConstraints(0, 11, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButton5 ----
                        radioButton5.setText("Mi\u1ec5n trung gian");
                        panelInfo.add(radioButton5, new GridBagConstraints(2, 11, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- radioButton6 ----
                        radioButton6.setText("K\u00fd g\u1edfi m\u00f4i gi\u1edbi");
                        panelInfo.add(radioButton6, new GridBagConstraints(3, 11, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label14 ----
                        label14.setText("Di\u1ec7n T\u00edch S\u1eed D\u1ee5ng");
                        panelInfo.add(label14, new GridBagConstraints(0, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- textFieldUsedArea ----
                        textFieldUsedArea.setText("0");
                        panelInfo.add(textFieldUsedArea, new GridBagConstraints(2, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label15 ----
                        label15.setText("Di\u1ec7n T\u00edch Khu\u00f4n Vi\u00ean");
                        panelInfo.add(label15, new GridBagConstraints(0, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- textFieldLengthCampusArea ----
                        textFieldLengthCampusArea.setText("0");
                        panelInfo.add(textFieldLengthCampusArea, new GridBagConstraints(2, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- textFieldWidthCampusArea ----
                        textFieldWidthCampusArea.setText("0");
                        panelInfo.add(textFieldWidthCampusArea, new GridBagConstraints(4, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label16 ----
                        label16.setText("Di\u1ec7n T\u00edch X\u00e2y D\u1ef1ng");
                        panelInfo.add(label16, new GridBagConstraints(0, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 0, 5), 0, 0));

                        //---- textFieldLengthBuildArea ----
                        textFieldLengthBuildArea.setText("0");
                        panelInfo.add(textFieldLengthBuildArea, new GridBagConstraints(2, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 0, 5), 0, 0));

                        //---- textFieldWidthBuildArea ----
                        textFieldWidthBuildArea.setText("0");
                        panelInfo.add(textFieldWidthBuildArea, new GridBagConstraints(4, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 0, 5), 0, 0));
                    }
                    tabbedPaneNewEstate.addTab("Th\u00f4ng Tin C\u01a1 B\u1ea3n", panelInfo);


                    //======== panelFeature ========
                    {
                        panelFeature.setLayout(new GridBagLayout());
                        ((GridBagLayout)panelFeature.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelFeature.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelFeature.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                        ((GridBagLayout)panelFeature.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

                        //---- label17 ----
                        label17.setText("\u0110\u1eb6C \u0110I\u1ec2M & TI\u1ec6N \u00cdCH");
                        label17.setFont(new Font("Tahoma", Font.BOLD, 14));
                        panelFeature.add(label17, new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label18 ----
                        label18.setText("T\u00ecnh Tr\u1ea1ng Ph\u00e1p L\u00fd");
                        panelFeature.add(label18, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxLegalEstate, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label19 ----
                        label19.setText("H\u01b0\u1edbng T\u00e0i S\u1ea3n");
                        panelFeature.add(label19, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxWayEstate, new GridBagConstraints(6, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label20 ----
                        label20.setText("\u0110\u01b0\u1eddng Tr\u01b0\u1edbc Nh\u00e0");
                        panelFeature.add(label20, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxFrontEstate, new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label21 ----
                        label21.setText("S\u1ed1 L\u1ea7u");
                        panelFeature.add(label21, new GridBagConstraints(4, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxFloor, new GridBagConstraints(6, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label22 ----
                        label22.setText("S\u1ed1 Ph\u00f2ng Kh\u00e1ch");
                        panelFeature.add(label22, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxSittingroom, new GridBagConstraints(2, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label23 ----
                        label23.setText("S\u1ed1 Ph\u00f2ng Ng\u1ee7");
                        panelFeature.add(label23, new GridBagConstraints(4, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxBedroom, new GridBagConstraints(6, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label24 ----
                        label24.setText("S\u1ed1 Ph\u00f2ng T\u1eafm / V\u1ec7 Sinh");
                        panelFeature.add(label24, new GridBagConstraints(0, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxBathroom, new GridBagConstraints(2, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label25 ----
                        label25.setText("S\u1ed1 Ph\u00f2ng Kh\u00e1c");
                        panelFeature.add(label25, new GridBagConstraints(4, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelFeature.add(comboBoxOtherRoom, new GridBagConstraints(6, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label26 ----
                        label26.setText("C\u00e1c Ti\u1ec7n \u00cdch");
                        panelFeature.add(label26, new GridBagConstraints(0, 11, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxFullEquip ----
                        checkBoxFullEquip.setText("\u0110\u1ea7y \u0111\u1ee7 ti\u1ec7n nghi");
                        panelFeature.add(checkBoxFullEquip, new GridBagConstraints(2, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxPool ----
                        checkBoxPool.setText("H\u1ed3 b\u01a1i");
                        panelFeature.add(checkBoxPool, new GridBagConstraints(4, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxGarden ----
                        checkBoxGarden.setText("S\u00e2n v\u01b0\u1eddn");
                        panelFeature.add(checkBoxGarden, new GridBagConstraints(6, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxGarage ----
                        checkBoxGarage.setText("Ch\u1ed7 \u0111\u1eadu xe h\u01a1i");
                        panelFeature.add(checkBoxGarage, new GridBagConstraints(2, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxForBusiness ----
                        checkBoxForBusiness.setText("Ti\u1ec7n kinh doanh");
                        panelFeature.add(checkBoxForBusiness, new GridBagConstraints(4, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxForLive ----
                        checkBoxForLive.setText("Ti\u1ec7n \u0111\u1ec3 \u1edf");
                        panelFeature.add(checkBoxForLive, new GridBagConstraints(6, 13, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxForOffice ----
                        checkBoxForOffice.setText("Ti\u1ec7n l\u00e0m v\u0103n ph\u00f2ng");
                        panelFeature.add(checkBoxForOffice, new GridBagConstraints(2, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxForProduce ----
                        checkBoxForProduce.setText("Ti\u1ec7n cho s\u1ea3n xu\u1ea5t");
                        panelFeature.add(checkBoxForProduce, new GridBagConstraints(4, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- checkBoxForLease ----
                        checkBoxForLease.setText("Cho sinh vi\u00ean thu\u00ea");
                        panelFeature.add(checkBoxForLease, new GridBagConstraints(6, 14, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                    }
                    tabbedPaneNewEstate.addTab("\u0110\u1eb7c \u0110i\u1ec3m & Ti\u1ec7n \u00cdch", panelFeature);


                    //======== panelDetail ========
                    {
                        panelDetail.setLayout(new GridBagLayout());
                        ((GridBagLayout)panelDetail.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelDetail.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelDetail.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                        ((GridBagLayout)panelDetail.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                    }
                    tabbedPaneNewEstate.addTab("M\u00f4 T\u1ea3 Chi Ti\u1ebft T\u00e0i S\u1ea3n", panelDetail);


                    //======== panelPicture ========
                    {
                        panelPicture.setLayout(new GridBagLayout());
                        ((GridBagLayout)panelPicture.getLayout()).columnWidths = new int[] {0, 0, 0};
                        ((GridBagLayout)panelPicture.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
                        ((GridBagLayout)panelPicture.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};
                        ((GridBagLayout)panelPicture.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
                    }
                    tabbedPaneNewEstate.addTab("C\u1eadp Nh\u1eadt H\u00ecnh \u1ea2nh", panelPicture);


                    //======== panelContact ========
                    {
                        panelContact.setLayout(new GridBagLayout());
                        ((GridBagLayout)panelContact.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelContact.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
                        ((GridBagLayout)panelContact.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
                        ((GridBagLayout)panelContact.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

                        //---- label27 ----
                        label27.setText("TH\u00d4NG TIN LI\u00caN H\u1ec6");
                        label27.setFont(new Font("Tahoma", Font.BOLD, 14));
                        label27.setHorizontalAlignment(SwingConstants.RIGHT);
                        panelContact.add(label27, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label28 ----
                        label28.setText("Ng\u01b0\u1eddi Li\u00ean H\u1ec7");
                        panelContact.add(label28, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(textFieldContactPerson, new GridBagConstraints(2, 3, 1, 1, 20.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label29 ----
                        label29.setText("\u0110i\u1ec7n Tho\u1ea1i");
                        panelContact.add(label29, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(textFieldPhone, new GridBagConstraints(5, 3, 1, 1, 19.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label31 ----
                        label31.setText("Email");
                        panelContact.add(label31, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(textFieldEmail, new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label30 ----
                        label30.setText("Di \u0110\u1ed9ng");
                        panelContact.add(label30, new GridBagConstraints(4, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(textFieldMobile, new GridBagConstraints(5, 5, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label32 ----
                        label32.setText("\u0110\u1ecba Ch\u1ec9");
                        panelContact.add(label32, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label35 ----
                        label35.setText("Qu\u1ed1c Gia");
                        panelContact.add(label35, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(comboBoxContactNation, new GridBagConstraints(2, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label36 ----
                        label36.setText("T\u1ec9nh / Th\u00e0nh Ph\u1ed1");
                        panelContact.add(label36, new GridBagConstraints(4, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(comboBoxContactCity, new GridBagConstraints(5, 8, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label37 ----
                        label37.setText("Qu\u1eadn / Huy\u1ec7n");
                        panelContact.add(label37, new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(comboBoxContactDistrict, new GridBagConstraints(2, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label38 ----
                        label38.setText("Ph\u01b0\u1eddng / X\u00e3");
                        panelContact.add(label38, new GridBagConstraints(4, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(comboBoxContactWard, new GridBagConstraints(5, 9, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label39 ----
                        label39.setText("S\u1ed1 Nh\u00e0 / S\u1ed1 L\u00f4");
                        panelContact.add(label39, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(textFieldContact, new GridBagConstraints(2, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label40 ----
                        label40.setText("T\u00ean \u0110\u01b0\u1eddng / T\u00ean Ph\u1ed1");
                        panelContact.add(label40, new GridBagConstraints(4, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                        panelContact.add(comboBoxContactStreet, new GridBagConstraints(5, 10, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //---- label33 ----
                        label33.setText("Ghi Ch\u00fa");
                        panelContact.add(label33, new GridBagConstraints(0, 12, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));

                        //======== scrollPane1 ========
                        {
                            scrollPane1.setViewportView(textAreaNote);
                        }
                        panelContact.add(scrollPane1, new GridBagConstraints(1, 13, 3, 1, 0.0, 1.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                            new Insets(0, 0, 5, 5), 0, 0));
                    }
                    tabbedPaneNewEstate.addTab("Th\u00f4ng Tin Li\u00ean H\u1ec7", panelContact);

                }
                panelNewEstate.add(tabbedPaneNewEstate);
                tabbedPaneNewEstate.setBounds(0, 0, 800, 470);

                //---- buttonBack ----
                buttonBack.setBorder(null);
                buttonBack.setIcon(new ImageIcon(getClass().getResource("/realestatemarketclient/resources/icons/Previous-icon.png")));
                buttonBack.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        buttonBackActionPerformed(e);
                    }
                });
                panelNewEstate.add(buttonBack);
                buttonBack.setBounds(10, 505, 100, 60);

                //---- buttonPostingSale ----
                buttonPostingSale.setText("\u0110\u0103ng T\u00e0i S\u1ea3n");
                buttonPostingSale.setIcon(new ImageIcon(getClass().getResource("/realestatemarketclient/resources/icons/Posting-icon.png")));
                buttonPostingSale.setBorder(null);
                panelNewEstate.add(buttonPostingSale);
                buttonPostingSale.setBounds(505, 505, 190, 60);

                //---- buttonNext ----
                buttonNext.setBorder(null);
                buttonNext.setIcon(new ImageIcon(getClass().getResource("/realestatemarketclient/resources/icons/Next-icon.png")));
                buttonNext.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        buttonNextActionPerformed(e);
                    }
                });
                panelNewEstate.add(buttonNext);
                buttonNext.setBounds(115, 505, 100, 60);
            }
            tabbedPanePostingSale.addTab("\u0110\u0103ng T\u00e0i S\u1ea3n M\u1edbi", panelNewEstate);

        }
        contentPane.add(tabbedPanePostingSale);
        tabbedPanePostingSale.setBounds(0, 0, 800, 600);

        contentPane.setPreferredSize(new Dimension(800, 600));
        pack();
        setLocationRelativeTo(getOwner());

        //---- buttonGroup1 ----
        ButtonGroup buttonGroup1 = new ButtonGroup();
        buttonGroup1.add(radioButtonSale);
        buttonGroup1.add(radioButtonBuy);
        buttonGroup1.add(radioButtonRent);
        buttonGroup1.add(radioButtonLease);

        //---- buttonGroup2 ----
        ButtonGroup buttonGroup2 = new ButtonGroup();
        buttonGroup2.add(radioButton5);
        buttonGroup2.add(radioButton6);
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // Generated using JFormDesigner Evaluation license - Nhan Nguyen
    private JTabbedPane tabbedPanePostingSale;
    private JPanel panel1;
    private JPanel panelNewEstate;
    private JTabbedPane tabbedPaneNewEstate;
    private JPanel panelInfo;
    private JLabel label1;
    private JLabel label2;
    private JRadioButton radioButtonSale;
    private JRadioButton radioButtonBuy;
    private JRadioButton radioButtonRent;
    private JRadioButton radioButtonLease;
    private JLabel label3;
    private JComboBox comboBoxTypeEstate;
    private JComboBox comboBoxLocationEstate;
    private JLabel label4;
    private JLabel label5;
    private JComboBox comboBoxNation;
    private JLabel label8;
    private JComboBox comboBoxCity;
    private JLabel label6;
    private JComboBox comboBoxDistrict;
    private JLabel label9;
    private JComboBox comboBoxWard;
    private JLabel label7;
    private JTextField textFieldHouse;
    private JLabel label10;
    private JComboBox comboBoxStreet;
    private JLabel label11;
    private JComboBox comboBoxProject;
    private JLabel label12;
    private JTextField textFieldPrice;
    private JComboBox comboBoxUnit;
    private JLabel label13;
    private JRadioButton radioButton5;
    private JRadioButton radioButton6;
    private JLabel label14;
    private JTextField textFieldUsedArea;
    private JLabel label15;
    private JTextField textFieldLengthCampusArea;
    private JTextField textFieldWidthCampusArea;
    private JLabel label16;
    private JTextField textFieldLengthBuildArea;
    private JTextField textFieldWidthBuildArea;
    private JPanel panelFeature;
    private JLabel label17;
    private JLabel label18;
    private JComboBox comboBoxLegalEstate;
    private JLabel label19;
    private JComboBox comboBoxWayEstate;
    private JLabel label20;
    private JComboBox comboBoxFrontEstate;
    private JLabel label21;
    private JComboBox comboBoxFloor;
    private JLabel label22;
    private JComboBox comboBoxSittingroom;
    private JLabel label23;
    private JComboBox comboBoxBedroom;
    private JLabel label24;
    private JComboBox comboBoxBathroom;
    private JLabel label25;
    private JComboBox comboBoxOtherRoom;
    private JLabel label26;
    private JCheckBox checkBoxFullEquip;
    private JCheckBox checkBoxPool;
    private JCheckBox checkBoxGarden;
    private JCheckBox checkBoxGarage;
    private JCheckBox checkBoxForBusiness;
    private JCheckBox checkBoxForLive;
    private JCheckBox checkBoxForOffice;
    private JCheckBox checkBoxForProduce;
    private JCheckBox checkBoxForLease;
    private JPanel panelDetail;
    private JPanel panelPicture;
    private JPanel panelContact;
    private JLabel label27;
    private JLabel label28;
    private JTextField textFieldContactPerson;
    private JLabel label29;
    private JTextField textFieldPhone;
    private JLabel label31;
    private JTextField textFieldEmail;
    private JLabel label30;
    private JTextField textFieldMobile;
    private JLabel label32;
    private JLabel label35;
    private JComboBox comboBoxContactNation;
    private JLabel label36;
    private JComboBox comboBoxContactCity;
    private JLabel label37;
    private JComboBox comboBoxContactDistrict;
    private JLabel label38;
    private JComboBox comboBoxContactWard;
    private JLabel label39;
    private JTextField textFieldContact;
    private JLabel label40;
    private JComboBox comboBoxContactStreet;
    private JLabel label33;
    private JScrollPane scrollPane1;
    private JTextArea textAreaNote;
    private JButton buttonBack;
    private JButton buttonPostingSale;
    private JButton buttonNext;
    // JFormDesigner - End of variables declaration  //GEN-END:variables

    private List<REMService.REALESTATETYPE> types;
    private List<REMService.LOCATION> locations;
    private List<REMService.CITY> cities;
    private List<REMService.NATION> nations;
    private List<REMService.DISTRICT> districts;
    private List<REMService.WARD> wards;
    private List<REMService.DISTRICTDETAIL> streets;
    
    private List<REMService.LEGAL> legals;
    private String[] ways = {"Không xác định", "Đông", "Tây", "Nam", "Bắc", "Đông Bắc", "Đông Nam", "Tây Bắc", "Tây Nam"};
    private String[] fronts = {"Không xác định", "< 3m", "> 3m", "> 4m", "> 5m"};
    private Integer[] numberOfRoom = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
}
